//
//  STThemeManager.m
//  STBasicsApp
//
//  Created by jerry on 2019/5/4.
//  Copyright © 2019 jerry. All rights reserved.
//

#import "STThemeManager.h"

@implementation STThemeManager

static STThemeManager * instance = nil;

+ (instancetype)sharedThemeManager{
    return [[self alloc] init];
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone {
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [super allocWithZone:zone];
    });
    return instance;
}

///初始化
- (instancetype)init {
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [super init];

    });
    return instance;
}

@end
